<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commonjsp/baseUtil.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页索引</title>
<script type="text/javascript">
$(function(){
	$('#commonTree').tree({
		checkbox: false,
		url: ROOTPATH+"/authority/getAllTreeNode.action",
		onClick:function(node){
			//alert(node);
			//$(this).tree('toggle', node.target);
			//alert('you click url is:'+node.attributes.url);
			//alert(ROOTPATH);
			if(node.attributes.url){
				$('#main_tab').tabs('add',{
					title:node.text,
					selected:true,
					closable:true,
					cache:false,
					fit:true,
					content:'<div title="Iframe" data-options="closable:true" style="overflow:hidden">'+
			            '<iframe scrolling="yes" frameborder="0"  src="'+ROOTPATH+"/"+node.attributes.url+'" style="width:100%;height:100%;"></iframe>'+  
			            '</div>'
					//href: ROOTPATH+"/"+node.attributes.url
					//src: "/s2sh/adminUser.action"
				});
			}else{
				alert("暂时没有界面关联");
			}
		}
	});
});
</script>
</head>
<body class="easyui-layout">
	<div title="系统功能菜单" style="width:260px;padding1:1px;overflow:hidden;">
		<ul id="commonTree"></ul>
	</div>
	<div style="overflow:hidden;">
		<div id="main_tab" class="easyui-tabs" >
			<div title="系统说明" style="padding:20px;overflow:hidden;"> 
				<div style="margin-top:20px;">
					<h3>jQuery EasyUI framework help you build your web page easily.</h3>
				</div>
			</div>
		</div>
	</div>
</body>
	
</html>